Stat

@Serializable
data class Stat(val id: Int, val name: String, val gameIndex: Int, val isBattleOnly: Boolean, val affectingMoves: MoveStatAffectSets, val affectingNatures: NatureStatAffectSets, val characteristics: List<Handle.Unnamed<Characteristic>>, val moveDamageClass: Handle.Named<MoveDamageClass>?, val names: List<Name>) : NamedModel(source)

Stats determine certain aspects of battles. Each Pokémon has a value for each stat which grows as they gain levels and can be altered momentarily by effects in battles. See: https://pokeapi.co/docs/v2#stats

Parameters

id

The identifier for this stat resource.

name

The name for this stat resource.

gameIndex

ID the games use for this stat.

isBattleOnly

Whether this stat only exists within a battle.

affectingMoves

A detail of moves which affect this stat and how they affect it.

affectingNatures

A detail of natures which affect this stat and how they affect it.

characteristics

A list of characteristics that are set on a Pokémon when its highest base stat is this stat.

moveDamageClass

The class of damage this stat is directly related to.

names

The name of this stat listed in different languages.

Constructors

Link copied to clipboard
constructor(id: Int, name: String, gameIndex: Int, isBattleOnly: Boolean, affectingMoves: MoveStatAffectSets, affectingNatures: NatureStatAffectSets, characteristics: List<Handle.Unnamed<Characteristic>>, moveDamageClass: Handle.Named<MoveDamageClass>?, names: List<Name>)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val id: Int
Link copied to clipboard
Link copied to clipboard
open override val name: String
Link copied to clipboard